package com.chinairi.mall.controller.viewobject;

import com.chinairi.mall.model.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author gsl
 * @date 2020-09-30 22:33
 */
public class OrderInfoVO extends OrderInfo {

    /**
     * 订单下的商品
     */
    private List<OrderGoods> orderGoodsList;

    /**
     * 采购服务订单
     */
    private OrderServicePurchaseVO orderServicePurchaseVO;

    /**
     * 配送服务订单
     */
    private OrderServiceTransportVO orderServiceTransportVO;

    /**
     * 质控服务订单
     */
    private List<OrderServiceQualityVO> orderServiceQualityVOList;

    /**
     * 仓储服务订单
     */
    private List<OrderServiceStorageVO> orderServiceStorageVOList;

    /**
     * 结算服务订单
     */
    private OrderServiceSettleVO orderServiceSettleVO;

    /**
     * 订单时间（起始）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTimeStart;
    /**
     * 订单时间（结束）
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTimeEnd;

    public List<OrderGoods> getOrderGoodsList() {
        return orderGoodsList;
    }

    public void setOrderGoodsList(List<OrderGoods> orderGoodsList) {
        this.orderGoodsList = orderGoodsList;
    }

    public OrderServicePurchaseVO getOrderServicePurchaseVO() {
        return orderServicePurchaseVO;
    }

    public void setOrderServicePurchaseVO(OrderServicePurchaseVO orderServicePurchaseVO) {
        this.orderServicePurchaseVO = orderServicePurchaseVO;
    }

    public OrderServiceTransportVO getOrderServiceTransportVO() {
        return orderServiceTransportVO;
    }

    public void setOrderServiceTransportVO(OrderServiceTransportVO orderServiceTransportVO) {
        this.orderServiceTransportVO = orderServiceTransportVO;
    }

    public List<OrderServiceQualityVO> getOrderServiceQualityVOList() {
        return orderServiceQualityVOList;
    }

    public void setOrderServiceQualityVOList(List<OrderServiceQualityVO> orderServiceQualityVOList) {
        this.orderServiceQualityVOList = orderServiceQualityVOList;
    }

    public List<OrderServiceStorageVO> getOrderServiceStorageVOList() {
        return orderServiceStorageVOList;
    }

    public void setOrderServiceStorageVOList(List<OrderServiceStorageVO> orderServiceStorageVOList) {
        this.orderServiceStorageVOList = orderServiceStorageVOList;
    }

    public OrderServiceSettleVO getOrderServiceSettleVO() {
        return orderServiceSettleVO;
    }

    public void setOrderServiceSettleVO(OrderServiceSettleVO orderServiceSettleVO) {
        this.orderServiceSettleVO = orderServiceSettleVO;
    }

    public Date getOrderTimeStart() {
        return orderTimeStart;
    }

    public void setOrderTimeStart(Date orderTimeStart) {
        this.orderTimeStart = orderTimeStart;
    }

    public Date getOrderTimeEnd() {
        return orderTimeEnd;
    }

    public void setOrderTimeEnd(Date orderTimeEnd) {
        this.orderTimeEnd = orderTimeEnd;
    }

    @Override
    public String toString() {
        return "OrderInfoVO{" +
                "orderGoodsList=" + orderGoodsList +
                ", orderServicePurchaseVO=" + orderServicePurchaseVO +
                ", orderServiceTransportVO=" + orderServiceTransportVO +
                ", orderServiceQualityVOList=" + orderServiceQualityVOList +
                ", orderServiceStorageVOList=" + orderServiceStorageVOList +
                ", orderServiceSettleVO=" + orderServiceSettleVO +
                ", orderTimeStart=" + orderTimeStart +
                ", orderTimeEnd=" + orderTimeEnd +
                '}';
    }
}
